mathematics of finance formula